<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="author" content="@梦雨(QQ50361804)" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>基本设置 - {:set('title')}</title>
    <meta name="keywords" content="{:set('keywords')}">
    <meta name="description" content="{:set('description')}">
    {include file="app/index/view/header.html"}
                <!-- 内容开始 -->
                <div class="col-12 col-md-12 col-lg-10 pb-20">
                    <div class="box box-content" style="min-height: 625px;">
                        
                        <div class="filterspace__controls">
                            <ul class="nav nav-pills" id="pills-tab" role="tablist">
                                <li class="nav-item">
                                    <a href="{:url('index/user/set')}" class="nav-link {if get('id','1')=='1'}active{/if}">个人资料</a>
                                </li>
                                <li class="nav-item">
                                    <a href="{:url('index/user/set',array('id'=>'account'))}" class="nav-link {if get('id','1')=='account'}active{/if}">
                                       账户绑定
                                    </a>
                                </li>
                            </ul>
                        </div>    
                        <div class="sides_list_property large mt-10" style="display: block;">
                            {if get('id','1')=='1'}
                            <!--个人资料-->
                            <form class="layui-form form" url="{:url('index/api/user_set')}" t_url="javascript:location.reload();">
                                <div class="pricing-body">
                                    <ul class="list contact-form col-lg-12">
                                        
                                        
                                        <div class="layui-form-item">
                                            <label for="name">邮箱</label>
                                            <div class="form-group">
                                                <input type="text" readonly value="{:user('usermail')}" style="text-align: left;" autocomplete="off" placeholder="账户绑定更换" class="form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">手机号码</label>
                                            <div class="form-group">
                                                <input type="text" readonly value="{:user('phone')}" style="text-align: left;" autocomplete="off" placeholder="账户绑定更换" class="form-control">
                                            </div>
                                        </div>
                                        
                                        <div class="layui-form-item">
                                            <label for="name">头像</label>
                                            <div class="form-group">
                                                <input type="text" name="userhead" class="form-control" value="{:user('userhead')}" id="pic" placeholder="上传头像" autocomplete="off" class="layui-input">
                                                <button type="button" class="layui-btn layui-btn-normal upimg" up="pic" style="position: absolute;top: 6px;right: 6px;height: 40px; width: 100px;"><i class="iconfont">&#xe691;</i> 上传头像</button>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">姓名</label>
                                            <div class="form-group">
                                                <input type="text" name="username" value="{:user('username')}" style="text-align: left;" autocomplete="off" placeholder="请输入" class="form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">性别</label>
                                            <div class="form-group">
                                                <input type="radio" name="sex" value="1" title="男" {if user( 'sex')==1}checked="" {/if}>
                                                <input type="radio" name="sex" value="0" title="女" {if user( 'sex')==0}checked="" {/if}>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">家乡</label>
                                            <div class="form-group">
                                                <input type="text" name="userhome" value="{:user('userhome')}" style="text-align: left;" autocomplete="off" placeholder="请输入" class="layui-input form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item layui-form-text">
                                            <label for="name">介绍</label>
                                            <div class="form-group">
                                                <textarea name="description" placeholder="请输入内容" class="layui-textarea form-control">{:user('description')}</textarea>
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">真实名字</label>
                                            <div class="form-group">
                                                <input type="text" name="sm_id" value="{:user('sm_id')}" style="text-align: left;" autocomplete="off" placeholder="对应提现账户的实名" class="form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">提现账户</label>
                                            <div class="form-group">
                                                <input type="text" name="sm_at" value="{:user('sm_at')}" style="text-align: left;" autocomplete="off" placeholder="输入提现账户例如支付宝" class="form-control">
                                            </div>
                                        </div>
                                        
                                        <div class="layui-form-item">
                                            <label for="name">新密码</label>
                                            <div class="form-group">
                                                <input type="text" name="passwords" value="" style="text-align: left;" autocomplete="off" placeholder="留空不改" class="form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">确定密码</label>
                                            <div class="form-group">
                                                <input type="text" name="password" value="" style="text-align: left;" autocomplete="off" placeholder="留空不改" class="form-control">
                                            </div>
                                        </div>
                                        <div align="center"> <a href="javascript:;" lay-submit lay-filter="cms" class="layui-btn">修改资料</a>
                                        </div>
                                    </ul>
                                </div>
                            </form>
                            {/if}
                            {if get('id','1')=='account'}
                            <!--账户绑定-->
                             <form class="layui-form form" url="{:url('index/api/user_set_name')}" t_url="javascript:location.reload();">
                                <div class="pricing-body">
                                    <ul class="list contact-form col-lg-12">
                                        <div class="layui-form-item">
                                            <label for="name">手机号码/邮箱</label>
                                            <div class="form-group">
                                                <input type="text" id="name" name="name" required lay-verify="required" value="" style="text-align: left;" autocomplete="off" placeholder="新的手机号码或者邮箱" class="form-control">
                                            </div>
                                        </div>
                                        <div class="layui-form-item">
                                            <label for="name">验证码</label>
                                            <div class="form-group">
                                                <input type="text" name="yanzhengma" class="form-control" lay-verify="required" value="" id="pic" maxlength="6" placeholder="验证码 不换留空"  autocomplete="off" class="layui-input">
                                                <div id="tup" style="display:none;"><img id="tupimg" src="" width="190"> </div>
                                              
                                              <button type="button" class="layui-btn layui-btn-normal sendRegCode" style="border-radius: 1.25rem;position: absolute;top: 6px;right: 6px;height: 40px; width: 100px;" t_url="{:url('index/api/yanzhengma_genghuan')}" id="phoneormail"><i class="iconfont">&#xe611;</i> 验证码</button>
                                              </div>
                                          </div>
                                        <div align="center"><a href="javascript:;" lay-submit lay-filter="cms" class="layui-btn"><i class="iconfont">&#xe60a;</i> 提交修改</a></div>
                                    </ul>
                                </div>
                            </form>
                            {/if}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>
    <div class="h66"></div>
    {:hook('userset')}
    {include file="app/index/view/footer.html"}